# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-feeds
pkgver=1.0.3
pkgrel=2
pkgdesc="RSS/Atom feed reader for GNOME"
url="https://gitlab.gnome.org/World/gfeeds"
# blocked by rust, webkit2gtk-5.0, gtk4.0
arch="noarch !s390x !riscv64"
license="GPL-3.0-or-later"
depends="
	python3
	py3-gobject3
	gtk4.0
	libadwaita
	webkit2gtk-5.0
	py3-beautifulsoup4
	py3-certifi
	py3-chardet
	py3-cssselect
	py3-dateutil
	py3-humanize
	py3-idna
	py3-lxml
	py3-magic
	py3-pillow
	py3-pygments
	py3-readability-lxml
	py3-requests
	py3-six
	py3-soupsieve
	py3-syndom
	py3-tz
	py3-urllib3
	"
makedepends="meson gettext glib-dev gobject-introspection-dev gtk4.0-dev
	libadwaita-dev webkit2gtk-5.0-dev blueprint-compiler"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/gfeeds/-/archive/$pkgver/gfeeds-$pkgver.tar.gz"
builddir="$srcdir/gfeeds-$pkgver"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
df18114704e30e507a4c10ad610e9e80b1a384e1fa371c9fe67a6f64b68c318d61941008ae97ab7485573dedbbd10dfb0b9cb0d0b63259a8504965e961825548  gfeeds-1.0.3.tar.gz
"
